</head>
<body>
<div class="f-sep10"></div>
<div class="f-sep10"></div>
<div class="m-hd m-tabs">
<h2 class="u-tt">自定义表单管理</h2>
	<div class="more"><a href="javascript:;" onClick="window.location.reload();"><span class="icon">&#xf021;</span> 刷新</a></div>
    <ul>
        <li><a class="z-crt" href="<?php echo url("admin_category/index"); ?>"><span class="icon">&#xf101;</span> 表单列表</a></li>
		<li><a href="<?php echo url('admin_category/add'); ?>" ><span class="icon">&#xf067;</span> 添加表单</a></li>
    </ul>
</div>
<div class="m-list-table">
<table class="m-table m-table-row tablesorter" id="table">
    <thead>
      <tr>
        <th class="cola">ID</th>
        <th>表单名称</th>
        <th>表单表</th>
        <th class="colb">表单操作</th>
      </tr>
      
    </thead>
    <tbody>
    	<!--foreach:{$list $vo}-->
        <tr>
        <td>{$vo.id}</td>
        <td>{$vo.name}</td>
        <td>{$vo.table}</td>
        
        <td>
        <a class="operating" href="<?php echo url('admin_list/index',array('id' => $vo['id'])) ?>" ><span class="icon">&#xf040;</span> 管理</a>
        <a class="operating" href="<?php echo url('admin_category/edit',array('id' => $vo['id'])) ?>" ><span class="icon">&#xf040;</span> 修改</a>
        <a class="operating" href="javascript:void(0);" onClick="del('<?php echo url('admin_category/del') ?>','{$vo.id}',this)"><span class="icon">&#xf014;</span> 删除</a>
        
         </td>
      </tr>
        <!--{/foreach}-->
    </tbody>
</table>
</div>
</body>
<script>
var del = new function(){}; 
Do.ready('base','dialog', function() {
	//表单删除
	window.del = function del(url,id,obj) {
		ajaxpost({
			name:'删除此表单会删除表单下的内容!',
			url:url,
			data:{id:id},
			tip:true,
			success:function(){
				$(obj).parent().parent().remove();
			}
		});
	}
});
</script>